package org.abacus.platform.entity;

import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;

public class Bean<T> implements Container<T> {
	/**
	 *
	 */
	private static final long serialVersionUID = -2551647387527522416L;
	private Map<String, T> properties = new HashMap<String, T>();
	private String containerType;

	public String getContainerType() {
		return containerType;
	}

	public void setContainerType(String arg0) {
		containerType = arg0;
	}

	public T setProperty(String arg0, T arg1) {
		return properties.put(arg0, arg1);
	}

	public T getProperty(String arg0) {
		return properties.get(arg0);
	}

	public Set<String> keySet() {
		return properties.keySet();
	}

	public Collection<T> values() {
		return properties.values();
	}

	public int size() {
		return properties.size();
	}

	public T remove(String arg0) {
		return properties.remove(arg0);
	}
}
